package com.zyb.ext.mybatis;

import java.lang.reflect.Proxy;

public class SQLSesssion {
    public static <T> T getMapper(Class clazz) {
        return (T) Proxy.newProxyInstance(clazz.getClassLoader(), new Class[]{clazz}, new MyInvocationHandler());
    }
}
